package com.youmans.dfsservice.entity;

import java.time.LocalDateTime;
import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 图片表
 * </p>
 *
 * @author youmans
 * @since 2022-10-16
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class YoumansPicture implements Serializable {

    private static final long serialVersionUID=1L;

    /**
     * 主键ID
     */
//    @TableId(type = IdType.AUTO)
      private String pid;

    /**
     * 图片原名
     */
    private String originalFilename;

    /**
     * 新图片名
     */
    private String newFilename;

    /**
     * 用户id
     */
    private Integer userId;

    /**
     * 创建时间
     */
//    @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date gmtCreate;

//    @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date gmtModified;

    /**
     * 可保存天数
     */
    private Integer saveDay;

    @TableLogic
    private Integer deleted;

    @TableField(exist = false)
    private String username ;
}
